package cn.elricyu.tt.bean;

public enum ResultTypeEnum {

	NORESULT(1), FAIL(2), SUCCESS(3);

	private int type;

	private ResultTypeEnum(int type) {
		this.type = type;
	}

	public static ResultTypeEnum typeOf(int type) {
		for (ResultTypeEnum e : ResultTypeEnum.values()) {
			if (e.getType() == type) {
				return e;
			}
		}
		return NORESULT;
	}

	public int getType() {
		return type;
	}
}
